Skip to content

[MNG-8678] Address review: improve isFatal Javadoc and add soft-failure test - #13091

Merged
gnodet merged 1 commit into
apache:masterfrom
gnodet:fix/MNG-8678-followup
Sep 10, 2026
Merged

[MNG-8678] Address review: improve isFatal Javadoc and add soft-failure test#13091
gnodet merged 1 commit into
apache:masterfrom
gnodet:fix/MNG-8678-followup

Conversation

@gnodet

@gnodet gnodet commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #13055 and the review on #13067.

Two improvements to BuildPlanExecutor:

Javadoc clarification

The isFatal @return tag now explains why RuntimeException is treated as fatal on par with Error: both indicate an unexpected JVM or framework state, as opposed to checked exceptions which are ordinary plugin failures that allow the reactor to continue.

New test: soft-failure path

exceptionThrownByBuildStepIsRecordedAsBuildFailure uses IllegalStateException (a RuntimeException, fatal path). There was no test pinning the soft-failure path — a checked exception that must not halt the reactor when --fail-at-end is in effect. The new checkedExceptionThrownByBuildStepDoesNotHaltReactor test fills that gap.

…re test

Follow-up to apache#13055. The isFatal Javadoc @return tag now explains why
RuntimeException is treated as fatal on par with Error (both indicate an
unexpected JVM or framework state). A new test pins the soft-failure path
so a future change to isFatal cannot silently break --fail-at-end for
ordinary plugin failures.
@gnodet gnodet added the chore label Sep 10, 2026
@gnodet gnodet added this to the 4.1.0 milestone Sep 10, 2026
@gnodet
gnodet merged commit 348258a into apache:master Sep 10, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant